<?php
use \think\facade\Route;

Route::get('test', function () {
    echo 678;
});

Route::group('get-user',function(){
    Route::post('registration','/zmt/Registration/registration');
    Route::post('sendAliSms','/zmt/Registration/sendAliSms');
    Route::post('login','/zmt/login/login');
});

Route::group('get-user-InFo',function (){
    Route::post('index','/zmt/User/index');
    Route::post('inter','/zmt/payinfo/index');
    Route::post('check','/zmt/payinfo/selectPay');
    Route::post('editPost','/zmt/User/editPost');
    Route::post('upload','/zmt/User/upload');
    Route::post('qiniu','/zmt/User/qinniu');
})->middleware(\api\zmt\middleware\CheckToken::class);

Route::group('get-user-address',function(){
    Route::post('add','/zmt/action/add');
    Route::post('index','/zmt/action/index');
})->middleware(\api\zmt\middleware\CheckToken::class);
Route::group('get-goods-order',function (){
   Route::post('create-order','/zmt/Order/order');
   Route::post('get-wuliu','/zmt/Order/wuliu');
   Route::post('get-Goodsinfomation','/zmt/Goodsinfomation/index');
})->middleware(\api\zmt\middleware\CheckToken::class);